package com.rui.sideup.api;

import com.rui.sideup.module.easyexcel.service.EasyExcelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * easyexcel测试api
 *
 * @author ZhangRui
 * @date 2022/11/22 13:27
 **/
@RestController
@RequestMapping("/easyexcel")
public class EasyExcelApi {

    @Autowired
    private EasyExcelService service;

    @GetMapping("/download")
    public void download(HttpServletResponse response) throws IOException {
        service.download(response);
    }

}
